package com.soryin.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 缩影信息
 * @author Hello_海生
 * @date 2014年3月6日
 */
@Entity
@Table(name="Soryin_Soryin")
public class Soryin {
	private int id;
	private Date entryTime;			//发布时间
	private Date updateTime;		//最后修改时间
	private User userId;			//发布者Id
	private Soryin upSoryinId;		//上一级的 缩影信息
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Date getEntryTime() {
		return entryTime;
	}
	public void setEntryTime(Date entryTime) {
		this.entryTime = entryTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@ManyToOne
	public User getUserId() {
		return userId;
	}
	public void setUserId(User userId) {
		this.userId = userId;
	}
	
	@OneToOne
	public Soryin getUpSoryinId() {
		return upSoryinId;
	}
	public void setUpSoryinId(Soryin upSoryinId) {
		this.upSoryinId = upSoryinId;
	}
	
	
	


	
	
	
}
